package com.base.cn.platform.os.service.course.classes.topic.report;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.course.CourseBaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 班级话题
 *
 * @author SK
 * @since 2018-06-04
 */
@FeignClient(value = CourseBaseService.appName, configuration = FeignAuthConfig.class)
public interface ClassesTopicReportService extends CourseBaseService {

    /**
     * 查询班级话题举报列表
     *
     * @param classesTopicReport 班级话题举报查询条件
     * @param currentPage        第N页
     * @return 班级话题举报列表
     */
    @RequestMapping(contextPath + "/findClassesTopicReportPage")
    Map<String, Object> findClassesTopicReportPage(@RequestBody Map<String, Object> classesTopicReport,
                                                   @RequestParam(value = "currentPage", required = false, defaultValue = "1") Integer currentPage);

    /**
     * 保存班级话题举报
     *
     * @param classesTopicReport 班级话题举报
     * @return 保存结果
     */
    @RequestMapping(contextPath + "/saveClassesTopicReport")
    Map<String, Object> saveClassesTopicReport(@RequestBody Map<String, Object> classesTopicReport);

    /**
     * 更新话题举报状态
     *
     * @param ids    话题举报id
     * @param status 1.正常 2.删除
     * @return 操作结果
     */
    @RequestMapping(contextPath + "/updateClassesTopicReportStatus")
    Map<String, Object> updateClassesTopicReportStatus(@RequestParam("ids") String ids,
                                                       @RequestParam("status") Integer status);

}
